<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="contactInfo.view"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.contactInfo.view"/> </h1></td></tr>
</table>

<table align=center class="borderAll">
    <tr>

        <th><s:text name="label.contactInfo.emailId"/></th>
        <th><s:text name="label.contactInfo.phoneNo"/></th>

         <th><s:text name="label.address.addressId"/></th>
                <th><s:text name="label.address.street"/></th>
                <th><s:text name="label.address.zipcode"/></th>
                <th><s:text name="label.address.addressType"/></th>
                <th><s:text name="label.address.lastUpdate"/></th>
    </tr>
    <s:iterator value="contactInfos" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">

            <td class="nowrap"><s:property value="emailId"/></td>
            <td class="nowrap"><s:property value="phoneNo"/></td>
            <td class="nowrap"><s:property value="addresses.addressId"/></td>
            <td class="nowrap"><s:property value="addresses.street"/></td>
            <td class="nowrap"><s:property value="addresses.zipcode"/></td>
            <td class="nowrap"><s:property value="addresses.addressType"/></td>
            <td class="nowrap"><s:property value="addresses.lastUpdate"/></td>


        </tr>  		
	 </s:iterator>
    </table>
</body>
</html>
